package com.weishaoying.api.entity;

import com.facebook.swift.codec.ThriftField;
import com.facebook.swift.codec.ThriftStruct;
import com.weishaoying.api.enums.GenderEnum;

/**
 * @author WeiShaoying
 * @date 2018/9/27
 */
@ThriftStruct
public class User {

    private Integer id;

    private String name;

    private Integer age;

    private String address;

    private GenderEnum gender;


    @ThriftField(1)
    public Integer getId() {
        return this.id;
    }

    @ThriftField
    public void setId(Integer id) {
        this.id = id;
    }

    @ThriftField(2)
    public String getName() {
        return this.name;
    }

    @ThriftField
    public void setName(String name) {
        this.name = name;
    }

    @ThriftField(3)
    public Integer getAge() {
        return this.age;
    }

    @ThriftField
    public void setAge(Integer age) {
        this.age = age;
    }

    @ThriftField(4)
    public String getAddress() {
        return this.address;
    }

    @ThriftField
    public void setAddress(String address) {
        this.address = address;
    }

    @ThriftField(5)
    public GenderEnum getGender() {
        return this.gender;
    }

    @ThriftField
    public void setGender(GenderEnum gender) {
        this.gender = gender;
    }
}
